package com.ssd.controller.inner;

import com.ssd.api.couponAndIntegral.PointsRecordApi;
import com.ssd.api.couponAndIntegral.dto.PointsRecordDTO;
import com.ssd.entity.PointsRecord;
import com.ssd.entity.dto.request.PointsRecordPage;
import com.ssd.service.IPointsRecordService;
import com.ssd.viewmodel.Pager;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@Api(tags = "内部接口-积分记录表控制器")
@RequestMapping("/inner/pointsRecord")
@RestController("innerPointsRecordController")
public class PointsRecordController implements PointsRecordApi {
    @Resource
    private IPointsRecordService pointsRecordService;


    /**
     * 消费新增积分
     */
    @ApiOperation("消费新增积分")
    @PostMapping("/save/add")
    public Boolean addRecord(@RequestBody PointsRecordDTO pointsRecordDTO)
    {
      return  pointsRecordService.addRecord(pointsRecordDTO);

    }

}
